package com.fancy.learncenter.ui.view;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.fancy.learncenter.utils.Utils;

/**
 * Created by hyy on 2017/9/12.
 * describe as
 */

public class LinearIiemDecoration extends RecyclerView.ItemDecoration {
    Context context;

    public LinearIiemDecoration(Context context) {
        this.context = context;
    }

    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
        super.getItemOffsets(outRect, view, parent, state);

        outRect.top = Utils.px2dip(context, 100);
    }

    @Override
    public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) {
        super.onDraw(c, parent, state);
    }
}
